islogin();
function islogin()
{
    $.post("/user/wechat/ajax.php",{enews:'islogin'},function(data)
	{
		if(data=="wxnologin")
		{
			var urlz='/user/wechat/?url='+window.location.href;
			url = urlz.replace(/\&/g,"~");
			window.location.href=url;
			return false;
		}
		else
		{
			return false;
		}
    })
}